package com.school.service;

import com.school.entity.ClassEntity;
import java.util.List;
import java.util.Optional;

public interface ClassService {
    List<ClassEntity> findAll();
    Optional<ClassEntity> findById(Long id);
    Optional<ClassEntity> findByName(String name);
    ClassEntity save(ClassEntity classEntity);
    void deleteById(Long id);
}
